package com.imufe.chemicalenterprisedangerwarning.service;

import com.imufe.chemicalenterprisedangerwarning.entity.po.CheckUnitPO;
import com.baomidou.mybatisplus.extension.service.IService;
import com.imufe.chemicalenterprisedangerwarning.entity.query.CheckUnitQuery;
import com.imufe.chemicalenterprisedangerwarning.entity.query.ChemicalQuery;
import com.imufe.chemicalenterprisedangerwarning.entity.vo.CheckUnitDetailedVO;
import com.imufe.chemicalenterprisedangerwarning.entity.vo.ChemicalDetailedVO;
import com.imufe.chemicalenterprisedangerwarning.exception.ValidationException;

import java.util.List;

/**
 * <p>
 * 检查模块表 服务类
 * </p>
 *
 * @author BaiBan
 * @since 2022-10-06
 */
public interface CheckUnitService extends IService<CheckUnitPO> {

    /**
     * 检查模块详细
     */
    CheckUnitDetailedVO detailed(Long id);

    /**
     * 以企业为模块返回列表
     */
    List<CheckUnitDetailedVO> list(Long enterpriseId);

    /**
     * 新增一个检查模块
     */
    CheckUnitDetailedVO create(CheckUnitQuery query) throws ValidationException;

    /**
     * 修改检查模块信息
     */
    CheckUnitDetailedVO update(CheckUnitQuery query) throws ValidationException;

}
